package com.ldu.dao.mapper;

import com.ldu.dao.dataobject.AdminDO;
import com.ldu.dao.query.AdminQuery;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * MyBatis Mapper for Admin.
 */
public interface AdminMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(AdminQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(AdminQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(AdminDO record);

    /**
     * insert selective.
     */
    int insertSelective(AdminDO record);

    /**
     * select by query condition.
     */
    List<AdminDO> selectByQuery(AdminQuery query);

    /**
     * select by primary key.
     */
    AdminDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") AdminDO record, @Param("query") AdminQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") AdminDO record, @Param("query") AdminQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(AdminDO record);
}